package com.hjh.thymeleafdemo1.Service;

import com.hjh.thymeleafdemo1.entity.Dept;
import com.hjh.thymeleafdemo1.repository.DeptRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Resource
    private DeptRepository deptRepository;

    @Override
    public List<Dept> queryAllDept() {
//        return deptRepository.getDeptList();
        return deptRepository.selectList(null);
    }
}
